home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 051-075 / disk_074 / xcopy / xcopy.doc < prev    next >
Text File  |  1992-05-06  |  3KB  |  58 lines

  1.     This a replacement for the Amiga DOS Copy command. Something that 
  2. always bugged me about the ADOS copy is that it sets the date of the 
  3. destination file to the current date. This makes it impossible to look at
  4. the dates of 2 files to tell which one is the newer file. Mycopy will set
  5. the date of the destination to the same date as the original file. This 
  6. makes it very easy to tell which one is the newer file.
  7.  
  8.     The format of the command is "copy [-au] source [destination]".
  9. Where the options are:
  10.     -a    all, copy subdirectories
  11.     -u    update, only copy the file if the source is newer than 
  12.         the destination.
  13. The -a option will copy the files from any subdirectories in the source
  14. directory. Copy will create the directory in the destination if it does 
  15. not already exist.
  16. The -u option will see if a file with the same name exits in the destination
  17. directory and if it does exist it will compare the DateStamp of the files.
  18. If the source file is newer then it will copy it over the destination. If
  19. the source is older or the same it will not copy it. If there is no file
  20. in the destination directory of the same name it will create it and copy
  21. the source to it.
  22.  
  23.     A source file or directory name is always required. If no destination
  24. is specified the the current directory is used. Unix type of wildcards (ie.
  25. * and ?) are allowed in the source file name. The easiest way to describe 
  26. everything is with some examples. In the examples f1 and f2 are the names
  27. of files and d1 and d2 are names of directories.
  28.  
  29. copy f1 f2        simple case
  30. copy f1 d1        copy the file f1 into the directory d1(d1 must exist)
  31. copy d1 f1        WILL NOT WORK
  32. copy d1 d2        copy all files from dir 1 to dir 2 (d2 must exist)
  33. copy -a df0: df1:    copy everything from drive 0 to drive 1
  34. copy df0:f1        copy the file f1 to the current directory
  35. copy df0:d1/*.c        copy all C file from df0:d1 to the current directory
  36. copy *.c df0:d1        copy all C files from the current directory to df0:d1
  37.             df0:d1 must already exist
  38. copy -au df0: df1:    copy all files in all directories on drive 0 to 
  39.             drive 1 if they do not exist or are newer
  40.  
  41.  
  42.     This command will be especially usefull to anybody using the ram
  43. disks, either the Amiga ram: or the new ASDG ram device vd0:. I have a
  44. 2 Meg expansion memory and it is very nice to do all my work on the ram disk
  45. because it is so much faster. For an example of how I use this copy program
  46. I will describe a typical session. I have a directory on a floppy disk for
  47. a C program that I am working on. I copy all the files to a directory on the
  48. ram disk. I then do all my editing and compiling on the ram disk because it 
  49. is so much faster. Every once in a while I do the command
  50.     "copy -u *.c df1:dir"
  51. which will copy all the files that have a .c extension AND that have been
  52. edited to the floppy disk.
  53.  
  54.     Hope you like it.
  55.     Lee Robertson
  56.     plink: lmr
  57.  
  58.